package com.example.lib_net.api


import com.example.lib_net.constant.API_MALL
import com.example.lib_net.model.api_mall.MallAdInfoListModel
import com.example.lib_net.model.api_mall.MallAdInfoModel
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST

interface MallApi {
    /**
     * 请求广告数据
     */
    @POST(API_MALL.GATE_WAY_URL)
    @MallApiService("cmallAdInfo")
    suspend fun cmallAdInfo(@Body body:RequestBody): MallAdInfoListModel<MallAdInfoModel>
}
//自定义注解：动态添加service
annotation class MallApiService(val service: String)